<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link type="text/css" rel="stylesheet" href="/${initParam.context_root }/css/admin/admin_tab_cscenter.css">
<link type="text/css" rel="stylesheet" href="/${initParam.context_root }/css/admin/admin_notice.css">
<script type="text/javascript" src="/${ initParam.context_root }/script/jquery.js"></script>
<script type="text/javascript">
	function register(){
		$.get
	}
</script>
<h2>CS Center - 공지사항</h2>
<h3>글목록</h3>
<table id="content" border="1"  align="center">
	<tr>
		<th width="65px">글번호</th>
		<th>제목</th>
		<!-- <th width="100px">작성자</th> -->
		<th width="100px">작성일</th>
		<th width="60px">조회수</th>
	</tr>
	<c:forEach items="${requestScope.cscenterList }" var="board">
		<tr>
			<td>${board.cscenterNo }</td>
			<td><a href="">${board.title }</a></td>
			<%-- <td>${board.nickname }</td> --%>
			<td>${board.creDate }</td>
			<td>${board.viewCnt }</td>
		</tr>
	</c:forEach>
</table>
<div align="center">
	<c:choose>
		<c:when test="${requestScope.pagingBean.previousPageGroup }">
			<a href="/${initParam.context_root }/admin/login/cscenter_notice.do?page=${requestScope.pagingBean.startPageOfPageGroup - 1}">◀</a>
		</c:when>
		<c:otherwise>◀</c:otherwise>
	</c:choose>
	<c:forEach begin="${requestScope.pagingBean.startPageOfPageGroup }"
					end="${requestScope.pagingBean.endPageOfPageGroup }"
					step="1"
					var="i">
		<c:choose>
			<c:when test="${i == requestScope.pagingBean.currentPage }">
				${i }
			</c:when>
			<c:otherwise>
				<a href="/${initParam.context_root }/admin/login/cscenter_notice.do?page=${i}">${i }</a>
			</c:otherwise>
		</c:choose>
	</c:forEach>
	<c:choose>
		<c:when test="${requestScope.pagingBean.previousPageGroup }">
			<a href="/${initParam.context_root }/admin/login/cscenter_notice.do?page=${requestScope.pagingBean.endPageOfPageGroup +1}">▶</a>
		</c:when>
		<c:otherwise>▶</c:otherwise>
	</c:choose>
</div>
<div>
	<button onclick="javascript:window.location.href='/${initParam.context_root }/admin/login/cscenter_write_form.do'">글쓰기</button>
</div>